package com.hongxun.design.mytools;

import java.util.UUID;

/**
 * Created by zerdoor_pc on 2016/4/28.
 */
public class MString {
    //    public static String LOCALIMAGEHEAD = "res://com.com.techinone.yourworld/";
    public static String LOCALIMAGEHEAD = "res://com.hongxun.design/";
    public static String TYPE = "TYPE";
    public static String TextTYPE = "TextTYPE";
    public static String exploration_type = "exploration_type";
    public static String uuid = "uuid";
    public static String systemBaseInfo = "systemBaseInfo";
    public static String id = "id";
    public static String isfirst = "isfirst";
    public static String service = "http_service_socket";
    public static String service2 = "http_file";
    public static String service_heart = "service_socket_heart";
    public static String token = "token";
    public static String boy = "男";
    public static String gril = "女";
    public static String erroralt = "4.9E-324";
    public static String HotHead = "PEIWANG_";
    public static String startDate = "startDate";
    public static String endDate = "endDate";
    public static String boyCode = "0";
    public static String grilCode = "1";
    public static String TYPENUM = "TYPENUM";
    public static String TITLE = "TITLE";
    public static String CONTENT = "CONTENT";
    public static String SENDCODE = "SENDCODE";
    public static String DESIGN_UNIT = "design_unit";//业主单位id
    public static String OWNER_UNIT = "owner_unit";//设计单位id
    public static String CODE = "CODE";
    public static String PATH = "PATH";
    public static String PROJECTID = "PROJECTID";
    public static String POINTDATA = "RECONPOINTDATA";
    public static String ISEDIT = "ISEDIT";
    public static String delate = "删除";
    public static String nodel = "no";
    public static String SURE = "确定";
    public static String openIdent = "openIdent";
    public static final String ChoiceModelData = "典设";
    public static final String Material = "材料明细";
    public static final String MAP = "MAP";
    public static final String LIST = "LIST";
    public static final String check = "check";
    public static final String setpoint = "setpoint";
    public static final String dotdesign = "dotdesign";
    public static final String pt = "pt";
    public static final String projectChoice = "projectChoice";
    public static final String projectChoice_selfcheck = "projectChoice_selfcheck";
    public static final String MaterialScience = "材料";
    public static final String Modular = "模块";
    public static final String Modular_Pro = "项目模块";
    public static final String play = "播放";
    public static String ERROR = "HTTP_ERROR:";
    public static String SUCCESSED = "HTTP_SUCCESSED";
    public static String UPlayer = "HTTP_UPlayer";
    public static String SUCCESS = "SUCCESS";
    public static String SUCCESSED_HTTP = "操作成功";
    public static String URL = "HTTP_UrlString:";
    public static String Params = "HTTP_Params:";
    public static String NoValue = "未填写";
    public static String AllowNo = "选填";
    public static String NoChoice = "未选择";
    public static String EXCEPTION = "系统异常";
    public static String Connection = "网络异常";
    public static String ERRORCODE = "错误代码";
    public static String NOTLOGIN = "未登录";
    public static String Loading = "加载中...";
    public static String Detailed = "明细";
    public static String YES = "是";
    public static String NO = "否";
    public static String YES_ = "是共杆";
    public static String NO_ = "否共杆";
    public static String YES_code = "1";
    public static String NO_code = "0";
    public static String TRUE = "true";
    public static String FALSE = "false";
    public static String HIGHT = "高压";
    public static String LOW = "低压";
    public static String Yellow = "Yellow";
    public static String Green = "Green";
    public static boolean ismust = true;
    public static boolean nomust = false;
    public static final String NEW = "11";
    public static final String OLD = "12";
    public static final String code_zero = "0";
    public static final String code_null = "";
    public static final String code_one = "1";
    public static final String code_two = "2";
    public static final String Scan = "扫描接收";
    public static final String ScanAndScan = "扫一扫";
    public static final String cost_center = "cost_center";
    public static final String splt = "——————————————————————";

    public static final String Scanproject = "Scanproject";
    public static final String ScanToFind = "ScanToFind";
    public static final String ScanToScan = "ScanToScan";
    public static final String PAYMENT = "payment";
    /**
     * 注册上传字段*
     */
    public static String username = "username";
    public static String mobilePhone = "mobilePhone";
    public static String phone = "phone";
    public static String key = "key";
    public static String ident_code = "ident_code";
    public static String validcode = "validcode";
    public static String pwd = "pwd";
    public static String password = "password";
    public static String security_problem1 = "security_problem1";
    public static String security_problem2 = "security_problem2";
    public static String security_answer1 = "security_answer1";
    public static String security_answer2 = "security_answer2";

    /**
     * 注册key字段*
     */
    public static String RegisterKey = "RegisterCodeKey";//注册Key
    public static String FindPasswordKey = "FindPasswordCodeKey";//找回密码Key
    public static String ModifyPasswordKey = "ModifyPasswordCodeKey";//修改密码Key

    /**
     * 密码找回方式*
     */
    public final static String REGEDIT = "注册";
    public final static String SMS = "短信找回";
    public final static String SecretSet = "密保设置";
    public final static String SECRET = "密保找回";
    public final static String ModifyPassword = "修改密码";
    public final static String PInformationSet = "个人信息设置";
    public final static String OutLogin = "退出登录";

    public final static String Password = "密码";
    /**
     * 个人信息设置
     **/
    public final static String avatar = "avatar";
    public final static String realname = "realname";
    public final static String email = "email";
    public final static String qq = "qq";
    public final static String wx = "wx";
    public final static String birthday = "birthday";
    public final static String sex = "sex";
    public final static String exploration_person = "exploration_person";
    /**
     * 二级界面标题*
     */

    public static String BitType = "选择点位类型";
    public static String Reconnaissance = "踏勘";
    public static String CreateProject = "创建项目";
    public static String CreateProjectAttributeCode = "典设信息";
    public static String Save = "保存";
    public static String search = "搜索";
    public static String SetPoint = "定位点信息设置";
    public static String PhotoGraph = "拍照";

    /**
     * 照相类型*
     */
    public static String Position = "位置照片";
    public static String Passageway = "通道照片";
    public static String Passageway_edit = "记录交叉跨越";
    public static String Environmental = "环境照片";
    public static String Environmental_edit = "编辑环境描述";

    public static String PhotoNum = "数量要求:";
    public static String Photos = "PHOTOS";

    /**
     * 创建项目item上传字段*
     */
    public static final String highVoltage = "101";
    public static final String project_id = "project_id";
    public static final String project_name = "project_name";
    public static final String project_type = "project_type";
    public static final String project_attribute = "project_attribute";
    public static final String region = "region";
    public static final String address = "address";
    public static final String detail_address = "detail_address";
    public static final String lng = "lng";
    public static final String lat = "lat";
    public static final String alt = "alt";
    public static final String create_time = "create_time";
    public static final String linkphone = "linkphone";
    public static final String linkman = "linkman";
    public static final String voice_remark = "voice_remark";
    public static final String characters_remark = "characters_remark";
    public static final String weather_zone = "weather_zone";
    public static final String power_zone = "power_zone";
    public static final String wire_type = "wire_type";
    public static final String wire_times = "wire_times";
    public static final String wire_model = "wire_model";
    public static final String codeset_version_id = "codeset_version_id";
    public static final String codeset_version = "codeset_version";
    public static final String codeset_id = "codeset_id";
    public static final String codeset_name = "codeset_name";
    public static final String codeset_number = "codeset_number";
    public static final String PHOTO_ID = "PHOTO_ID";
    public static final String PHOTO_UUID = "PHOTO_UUID";
    public static final String stage = "stage";
    public static final String stage_id = "stage_id";
    public static final String manager = "manager";
    public static final String manager_id = "manager_id";
    public static final String explorationer = "explorationer";
    public static final String designer = "designer";
    public static final String auditor = "auditor";
    public static final String design_unit = "design_unit";
    public static final String owner_unit = "owner_unit";
    public static final String soil = "soil";
    public static final String transport = "transport";
    public static final String TZD = "12";
    public static final String DWD = "11";
    public static final String flag = "flag";
    public static final String classify = "classify";
    public static final String add = "add";
    public static final String up = "up";
    public static final String del = "del";
    /**
     * 文件上传类型*
     */
    public static String HEADER_TYPE = "01";//用户头像
    public static String PROJECT_TYPE = "02";//项目缩略图
    public static String PECON_FIRST_TYPE = "03";//踏勘一类照片
    public static String PECON_SECOND_TYPE = "04";//踏勘二类照片
    public static String PECON_THIRD_TYPE = "05";//踏勘三类照片
    public static String PROJECT_RADIO = "06";//语音

    /**
     * 踏勘上传字段*
     */
    public static String Transformer = "100002";//
    public static String ganta = "100004";//
    public static String dahuodian = "100001";//
    public static String number = "number";//
    public static String pt_objectid = "pt_objectid";//
    public static String explor_id = "explor_id";//
    public static String before_exp = "before_exp";//
    public static String before_number = "before_number";//
    public static String before_lat = "before_lat";//
    public static String before_lng = "before_lng";//
    public static String corner = "corner";//
    public static String before_corner = "before_corner";//
    public static String explorationer_id = "explorationer_id";//
    public static String exploration_id = "exploration_id";//
    public static String span = "span";//
    public static String laxian = "laxian";//
    public static String num_way = "num_way";//
    public static String install_way = "install_way";//
    public static String elecbox_assign = "elecbox_assign";//
    public static String pt_id = "pt_id";//
    public static String distance = "distance";//
    public static String name = "name";//
    public static String explor_name = "explor_name";//
    public static String g_exp_id = "g_exp_id";//
    public static String keyword = "keyword";//
    public static String main_wiring = "main_wiring";//
    public static String power_room_assign = "power_room_assign";//
    public static String space_num = "space_num";//
    public static String voltage_type = "voltage_type";//
    public static String cable_branchbox_assign = "cable_branchbox_assign";//
    public static String elec_sub_capacity = "elec_sub_capacity";//
    public static String elec_sub_type = "elec_sub_type";//
    public static String num = "num";//
    public static String rank_way = "rank_way";//
    public static String wiring_way = "wiring_way";//
    public static String wiring_type = "wiring_type";//
    public static String trans_attribute = "trans_attribute";//
    public static String trans_capacity = "trans_capacity";//
    public static String trans_type = "trans_type";//
    public static String voltage_grade = "voltage_grade";//
    public static String bx_cjq_code = "cjq_code";//
    public static String bx_ip_address = "ip_address";//
    public static String bx_address = "address";//
    public static String bx_old_code = "old_code";//
    public static String bx_new_code = "new_code";//
    public static String bx_bj_code = "bj_code";//
    public static String length = "length";//
    public static String wire_id = "wire_id";//
    public static String start_stop = "start_stop";//
    public static String cable_pit_type = "cable_pit_type";//
    public static String wire_pass_attribute = "wire_pass_attribute";//
    public static String wire_pass_type = "wire_pass_type";//
    public static String wire_pass_actuality = "wire_pass_actuality";//
    public static String wire_lay = "wire_lay";//
    public static String pole_attribute = "pole_attribute";//
    public static String is_common = "is_common";//
    public static String pole_type = "pole_type";//
    public static String height = "height";//
    public static String pole_height = "pole_height";//
    public static String benchbar1_number = "benchbar1_number";//
    public static String benchbar2_number = "benchbar2_number";//
    public static String guide_name = "guide_name";//
    public static String guide_phone = "guide_phone";//
    public static String pole_material = "pole_material";//
    public static String high_wire_type = "high_wire_type";//
    public static String high_wire_model = "high_wire_model";//
    public static String high_wire_times = "high_wire_times";//
    public static String low_wire_type = "low_wire_type";//
    public static String low_wire_model = "low_wire_model";//
    public static String low_wire_times = "low_wire_times";//
    public static String pole_device = "pole_device";//
    public static String all_user = "all_user";//
    public static String user_name = "user_name";//
    public static String user_num = "user_num";//
    public static String user_point = "user_point";//
    public static String userid = "userid";//
    public static String digit = "digit";//
    public static String vegetation_type = "vegetation_type";//
    public static String angle = "angle";//
    public static String fell_num = "fell_num";//
    public static String width = "width";//
    public static String horizon_distance = "horizon_distance";//
    public static String relative_height = "relative_height";//
    public static String vertical_distance = "vertical_distance";//
    public static String road_type = "road_type";//
    public static String dispersion = "dispersion";//

    public static String filter = "filter";
    /**
     * 环境拍照上传字段*
     */
    public static String traffic = "traffic";//
    public static String haul_distance = "haul_distance";//


    public final static String year = "year";//
    public final static String current_stage = "current_stage";//
    public final static String current_schedule = "current_schedule";//


    /**
     * 文件存储字段*
     */
    public final static String File_sysType = "sysType";//
    public final static String File_ProjectList = "projectList";//
    public final static String File_ProjectMap = "ProjectMap";//
    /**
     * 文件自动缓存code
     **/
    public final static String currProject = "currProject";//
    public final static String Project_ = "ProjectStage_";//Project_123498
    public final static String ProjectStageReviceListFile = "ProjectStageReviceListFile";//
    public final static String ProjectStageListFile = "ProjectStageListFile";//
    public final static String ProjectListFile = "ProjectListFile";//
    public final static String ProjectStageExplorePointList = "ProjectStageExplorePointList";//ProjectStageExplorePointList_7823478_11,ProjectStageExplorePointList_7823478_12
    public final static String ProjectStageTotalInfo = "ProjectStageTotalInfo";//
    public final static String ProjectStageBaseInfo = "ProjectStageBaseInfo";//
    public final static String ProjectStageTower = "ProjectStageTower";//
    public final static String ProjectStageElectric = "ProjectStageElectric";//
    public final static String ProjectTransformerListFile = "ProjectTransformerListFile";//
    public final static String ProjectTransformerList = "ProjectTransformerList";//
    public final static String ProjectStageTransformerTotalInfo = "ProjectStageTransformerTotalInfo";//
    public final static String ProjectTransformerExplorePointList = "ProjectTransformerExplorePointList";//
    public final static String ProjectStageAcross = "ProjectStageAcross";//
    public final static String ProjectStageMaterial = "ProjectStageMaterial";//
    public final static String ProjectExplorePointInfo = "ProjectExplorePointInfo";//
    public final static String ExplorePointBelongFile = "ExplorePointBelongFile";//
    public final static String ProjectExplorePointInfoPhoto = "ProjectExplorePointInfoPhoto";//
    public final static String ProjectExploreAcrossBeforePoint = "ProjectExploreAcrossBeforePoint";//
    public final static String ProjectExploreAcrossBeforePointChannelList = "ProjectExploreAcrossBeforePointChannelList";//
    public final static String ProjectExploreAcrossOnChannelList = "ProjectExploreAcrossOnChannelList";//
    public final static String ProjectExploreEnvInfo = "ProjectExploreEnvInfo";//
    public final static String Response = "Response";//本地存储文件夹
    public final static String Request = "Request";//同步存储文件夹
    public final static String ProjectRecord = "ProjectRecord";//同步存储文件夹
    /**
     * 典设
     **/
    public final static String click_out = "click_out";//
    public final static String Type_GetPT_ID = "Type_GetPT_ID";//
    public final static String Type_Material = "Type_Material";//
    public final static String click_in = "click_in";//
    public final static String codeset_type = "codeset_type";//
    public final static String UserByTypeList = "UserByTypeList";//
    public final static String CodeSetList = "CodeSetList";//


    /**
     * 登录后保存字段
     **/
    public final static String login_username = "login_username";//
    public final static String login_userpsw = "login_userpsw";//
    public final static String Secretkey = "Secretkey";//

    public final static String login_currusername = "login_currusername";//
    public final static String login_curruserpsw = "login_curruserpsw";//
    public final static String login_avatar = "login_avatar";//
    public final static String logon_automatic = "logon_automatic";//

    public final static String Carouse = "Carouse";
    public final static String Encyclopedias = "Encyclopedias";
    public final static String EXPERIENCE = "EXPERIENCE";
    public final static String MYNEW = "MYNEW";
    public final static String MYSYSTEM = "MYSYSTEM";
    public final static String AUTHORIZATION = "AUTHORIZATION";


    /**
     * 推送保存字段
     **/
    public final static String PUSH = "PUSH";
    public final static String IsOnLine = "IsOnLine";
    public final static String WIFIUPDATE = "WIFIUPDATE";
    public final static String codedContent = "codedContent";
    public final static String android = "android";

    public final static String userInfo = "1";//1(个人信息)
    public final static String projectInfo = "2"; //  2(项目信息)
    public final static String ali = "ali"; //


    public final static String itl = "imgtypelist"; //照片类型数据
    public final static String projectStagePhInfo_ = "ProjectStagePhInfo_"; //照片类型数据文件前缀

    /**
     * 点位材料合计(项)
     */
    public final static String mCount1 = "mcount1";
    public final static String mCount2 = "mcount2";

    /**
     * 验收记录数据库
     */
    public final static String ExPro = "ExPro";//发现的问题
    public final static String ExProPhoto = "ExProPhoto";//发现的问题照片
    public final static String library = "library";//问题库
    public final static String libraryPhoto = "libraryPhoto";//问题库图例照片
    public final static String lib_point = "lib_point";//问题库图例照片
    public final static String xmYXZ = "已下载";//项目状态1
    public final static String xmDTB = "待同步";//项目状态2
    public final static String xmYTB = "已同步";//项目状态3
    public final static String projectStageYhInfo_ = "ProjectStageProblemInfo_";//照片类型数据文件前缀
    public final static String projectYhJL = "projectYhJL";//照片类型数据文件前缀
    public final static String existProblem = "已有问题";
    public final static String problemLibrary = "问题库";

    /**
     * 材料离线部分key
     */
    public final static String nxMaterialImp = "nxMaterialImp";//项目导入材料
    public final static String nxModelAdd = "nxModelAdd";//项目新建模块
    public final static String nxDsAdd = "nxDsAdd";//项目新建点设
    public final static String nxPointMaterial = "nxPointMaterial";//项目点位材料
    public final static String nxPointModel = "nxPointModel";//项目点位模块
    public final static String nxPointDs = "nxPointDs";//项目点位点设
    public final static String nxDsMaterial = "nxDsMaterial";//项目点设的材料/模块

    public static String getMyUUID() {
        UUID uuid = UUID.randomUUID();

        return uuid.toString();
    }

    public static String getValueId(String a, String b) {
        if (a.length() > 0 && !a.equals(code_zero)) {
            return a;
        } else {
            return b;
        }
    }
}
